package net.lanelife.casino.caipiao.dto.admin;

import javax.validation.constraints.NotNull;

import net.lanelife.casino.caipiao.entity.PaymentPlatform.BankChooseSide;
import net.lanelife.casino.common.dto.TransientDTO;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class PaymentPlatformCreateDTO extends TransientDTO<Integer> {

	private static final long serialVersionUID = 9035220575078454313L;

	@NotBlank
	@Length(min = 2, max = 10)
	private String code;
	
	@NotBlank
	@Length(min = 2, max = 10)
	private String name;
	
	@NotNull
	private BankChooseSide bankChooseSide = BankChooseSide.OURSIDE;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BankChooseSide getBankChooseSide() {
		return bankChooseSide;
	}

	public void setBankChooseSide(BankChooseSide bankChooseSide) {
		this.bankChooseSide = bankChooseSide;
	}
	
}
